package com.watson.onebox.sc.springbox;


import org.springframework.stereotype.Component;

@Component
public class SetPeriod {

    private static Long maxPeriod = 1000l;

    public void update(Long period) {
        maxPeriod += 1000;
        setScheduleConfig(maxPeriod);
    }

    public boolean setScheduleConfig(Long period) {
        DynamicScheduleTaskSecond.setPeriod(period);
        return true;
    }
}
